package info.touret.winecellar.userinfo.client;


import info.touret.winecellar.userinfo.server.domain.UserInfo;
import info.touret.winecellar.userinfo.shared.UserInfoProxy;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;


@Service(UserInfo.class)
public interface UserInfoRequest extends RequestContext {
	Request<List<UserInfoProxy>> findAllUserInfo();

	InstanceRequest<UserInfoProxy, Void> persist();

	InstanceRequest<UserInfoProxy, Void> remove();
	
	InstanceRequest<UserInfoProxy, Void> update();
	
	Request<UserInfoProxy> findUserInfo(Long id) ;
	
	Request<String> createLoginURL(String _value);

	Request<String> createLogoutURL(String _value);


}
